Skip to content

thedark1337/Jethro-Koa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jethro-Koa Build Status

Jethro Logger for KoaJS. Extends Jethro to log KoaJS requests.

Installation

npm install --save jethro thedark1337/jethro-koa

Contributing

This project utilizes Mocha and ESLint to test the code style of the project. Just run the command npm test and make sure it passes

Usage

'use strict';

const Koa = require('koa');
const app = module.exports = new Koa();
const Jethro = require('jethro');
const logger = new Jethro();
const KoaLogger = require('jethro-koa');
const requestLogger = new KoaLogger();

logger.addPlugin('koa', requestLogger);

app.use(koaLogger.input());

License

Licensed under the LGPL v3 License

Copyright (C) 2015 Alex Pham (known as Thedark1337)

You can find full license here.

About

Jethro Logger for KoaJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published